package com.taekwon.www.remote.dao;

import java.util.ArrayList;

import com.taekwon.www.remote.model.DataModel;

public class DaoDataModel {
	public static void main(String[] args) {
		DaoDataModel ddm = new DaoDataModel();
		ArrayList<DataModel> list = ddm.getData(10);
		
		for(DataModel dm:list){
			System.out.print(dm.getCol1()+"\t");
			System.out.print(dm.getCol2()+"\t");
			System.out.print(dm.getCol3()+"\n");
		}
	}

	public ArrayList<DataModel> getData(int num) {
		ArrayList<DataModel> list = new ArrayList<DataModel>();
		DataModel dm;
		for (int i = 0; i < num; i++) {
			dm = new DataModel();
			dm.setCol1(i + "");
			dm.setCol2("data");
			dm.setCol3("test");
			list.add(dm);
		}
		return list;
	}
}
